package com.example.demo.control;

import com.example.demo.service.BackRoleService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;

@ResponseBody
@Controller
public class BackRoleControl {
    @Resource
    BackRoleService backRoleService;
    @PostMapping("/c/backroleoption")
    public String backrolename(){
        return backRoleService.BackRoleSelect(-1,"");
    }

    @PostMapping("/haveid")
    public String haveid(int id){
        return backRoleService.haveroleid(id);
    }
}
